package com.TestDemo.Test2;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/13/7:29
 * @Description:
 * @Target: 测试if括号内能否写非Boolean的东西
 */
public class if_valueTest {
    public static void main(String[] args) {
        int i = 0;
        int j = 1;
        try {
        // if (i=j){  }   -----编译报错

//            while (i=j){}

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
        }
    }
}
